import axios from "../../axios"

export function getAutoOrderById(orderId) {
    return axios.get('/getAutoOrderById?orderId=' + orderId)
}

export function getRepairOrderById(orderId) {
    return axios.get('/getRepairOrderById?orderId=' + orderId)
}

export function addAutoDPApproval(data) {
    return axios({
        method: 'POST',
        url: '/addAutoDPApproval',
        data: data,
    })
}

export function addAutoGeneralApproval(data) {
    return axios({
        method: 'POST',
        url: '/addAutoGeneralApproval',
        data: data,
    })
}

export function addRepairGeneralApproval(data) {
    return axios({
        method: 'POST',
        url: '/addRepairGeneralApproval',
        data: data,
    })
}

export function queryFreePlateNum(autoType) {
    return axios.get('/queryFreePlateNum?autoType=' + autoType)
}

export function queryFreeDrivers() {
    return axios.get('/queryFreeDrivers')
}

//获取综合办审批数据
export function getAutoGeneralApproval(orderId) {
    return axios.get('/getAutoGeneralApproval?orderId=' + orderId)
}

export function getAutoDepartmentApproval(orderId) {
    return axios.get('/getAutoDepartmentApproval?orderId=' + orderId)
}

export function getRepairGeneralApproval(orderId) {
    return axios.get('/getRepairGeneralApproval?orderId=' + orderId)
}